package com.happy.study.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName ( "course_info" )
public class CourseEntity extends BaseEntity {

    @TableId ( "id" )
    private Integer id;

    @TableField ( "type" )
    private Integer type;

    @TableField ( "courseTitle" )
    private String courseTitle;

    @TableField ( "level" )
    private Integer level;

    @TableField ( "categoryId" )
    private Integer categoryId;

    @TableField ( "studyPerson" )
    private Integer studyPerson;

    @TableField ( "parentId" )
    private Integer parentId;

    @TableField ( "url" )
    private String url;

    @TableField ( "createTime" )
    private String createTime;

    @TableField ( "changeTime" )
    private String changeTime;

    @TableField ( "isUsed" )
    private Integer isUsed;

    @TableField(exist = false)
    private String categoryName;
    @TableField(exist = false)
    private String fileUrl;

    public Integer getId () {
        return id;
    }

    public void setId ( Integer id ) {
        this.id = id;
    }

    public Integer getType () {
        return type;
    }

    public void setType ( Integer type ) {
        this.type = type;
    }

    public String getCourseTitle () {
        return courseTitle;
    }

    public void setCourseTitle ( String courseTitle ) {
        this.courseTitle = courseTitle;
    }

    public Integer getLevel () {
        return level;
    }

    public void setLevel ( Integer level ) {
        this.level = level;
    }

    public Integer getCategoryId () {
        return categoryId;
    }

    public void setCategoryId ( Integer categoryId ) {
        this.categoryId = categoryId;
    }

    public Integer getStudyPerson () {
        return studyPerson;
    }

    public void setStudyPerson ( Integer studyPerson ) {
        this.studyPerson = studyPerson;
    }

    public Integer getParentId () {
        return parentId;
    }

    public void setParentId ( Integer parentId ) {
        this.parentId = parentId;
    }

    public String getUrl () {
        return url;
    }

    public void setUrl ( String url ) {
        this.url = url;
    }

    public String getCreateTime () {
        return createTime;
    }

    public void setCreateTime ( String createTime ) {
        this.createTime = createTime;
    }

    public String getChangeTime () {
        return changeTime;
    }

    public void setChangeTime ( String changeTime ) {
        this.changeTime = changeTime;
    }

    public Integer getIsUsed () {
        return isUsed;
    }

    public void setIsUsed ( Integer isUsed ) {
        this.isUsed = isUsed;
    }

    public String getCategoryName () {
        return categoryName;
    }

    public void setCategoryName ( String categoryName ) {
        this.categoryName = categoryName;
    }

    public String getFileUrl () {
        return fileUrl;
    }

    public void setFileUrl ( String fileUrl ) {
        this.fileUrl = fileUrl;
    }

    @Override
    public String toString () {
        return "CourseEntity{" +
                "id=" + id +
                ", type=" + type +
                ", courseTitle='" + courseTitle + '\'' +
                ", level=" + level +
                ", categoryId=" + categoryId +
                ", studyPerson=" + studyPerson +
                ", parentId=" + parentId +
                ", createTime='" + createTime + '\'' +
                ", changeTime='" + changeTime + '\'' +
                ", isUsed=" + isUsed +
                '}';
    }
}
